/*
 * LiveMediaPlayer.h
 *
 *  Created on: 2018年8月2日
 *      Author: zhengboyuan
 */

#ifndef LIVEMEDIAPLAYER_H_
#define LIVEMEDIAPLAYER_H_

#include "MediaStreamPlayer.h"

class LiveMediaPlayer: public MediaStreamPlayer
{
public:
	static int	MAX_DELAY_TIME;

public:
    LiveMediaPlayer();
    virtual ~LiveMediaPlayer();

    bool Open(nvs::NetVideoSystem* system, const char* devID);

    virtual bool CanSeek();

    virtual std::string GetUrl();

    virtual void EnableDrawTrack(bool enabled);

	virtual void InputFaceTrack(const char* devID, const char* text, int size);

	bool Reconnect(nvs::NetVideoSystem* system);

protected:
	virtual void onOpen();

	virtual void endOfStream(int reason);
	///发送媒体数据
	virtual int writePacket(const nvs::StreamPacket& packet);

protected:

protected:
    std::string m_devID;
    bool    m_faceTrackEnabled;

	int		m_faceCount;

};

#endif /* LIVEMEDIAPLAYER_H_ */
